# Contributor: Zach DeCook <zachdecook@librem.one>
# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=hyprland-protocols
pkgver=0.3.0
pkgrel=0
pkgdesc="Wayland protocol extensions for Hyprland"
url="https://github.com/hyprwm/hyprland-protocols"
arch="noarch"
license="BSD-3-Clause"
source="https://github.com/hyprwm/hyprland-protocols/archive/v$pkgver/hyprland-protocols-v$pkgver.tar.gz"
makedepends="meson"
subpackages="$pkgname-doc"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}


sha512sums="
15bb0c45eed1949d888d228c671139fefd48e32d634823ed8041a4901e15e73409b0fd368d4c1f6197bd6980e723b20303697ad46b1171330cfd27821118ba32  hyprland-protocols-v0.3.0.tar.gz
"
